﻿namespace Douyu.SDK.Messages
{
    /// <summary>
    /// 用户进入房间通知消息
    /// </summary>
    public class UserEnterMessage : BaseMessage
    {
        public UserEnterMessage(BaseMessage msg) : base(msg)
        {
        }

        /// <summary>
        /// 房间ID
        /// </summary>
        public int rid
        {
            get { return GetValue(nameof(rid), 0); }
        }

        /// <summary>
        /// 分组号
        /// </summary>
        public int gid
        {
            get { return GetValue(nameof(gid), 0); }
        }

        /// <summary>
        /// 用户ID
        /// </summary>
        public int uid
        {
            get { return GetValue(nameof(uid), 0); }
        }

        /// <summary>
        /// 用户昵称
        /// </summary>
        public string nn
        {
            get { return GetValue(nameof(nn), ""); }
        }


        /// <summary>
        /// 战斗力
        /// </summary>
        public int str
        {
            get { return GetValue(nameof(str), 0); }
        }

        /// <summary>
        /// 用户等级
        /// </summary>
        public int level
        {
            get { return GetValue(nameof(level), 0); }
        }
    }
}
